/*
 * Copyright (c) 2011 Jean-Marc Perronne
 * Ensisa, 12 rue des Freres Lumieres, F-68093 Mulhouse cedex
 * All rights reserved.
 *
 * The copyright of this software is owned by Werner Randelshofer. 
 * You may not use, copy or modify this software, except in  
 * accordance with the license agreement you entered into with  
 * Jean-Marc Perronne. For details see accompanying license terms. 
 */

package fr.uha.ensisa.jmp.ui.utils;

import java.awt.Color;


public class ColoredRange
{
	public final Range range;
	public Color color;
	
	public ColoredRange(int min, int max, Color color)
	{
		this.range = new Range(min, max);
		this.color = color;
	}
	
	boolean isRightColor(int v)
	{
		return this.range.isIn(v);
	}
}
